package com.yeyks.common.param.finance;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author fuchangshuai
 * @date 2019/07/09 16:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FinanceBindParam implements Serializable {

    private static final long serialVersionUID = -2356299461561830681L;
    @ApiModelProperty("银行卡号")
    @StrNotEmpty(message = "银行卡号不能为空")
    private String bankCard;

    @ApiModelProperty("开户支行")
    @StrNotEmpty(message = "开户支行不能为空")
    private String branchBankName;

    @ApiModelProperty("银行名称")
    @StrNotEmpty(message = "银行名称不能为空")
    private String bankName;

    @ApiModelProperty("用户名")
    @StrNotEmpty(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty("类型(0 个人账户，1对公账户)")
    @NotNull(message = "账户类型必传")
    private Integer type;
}
